const app = getApp();
Page({
  data: {
    zone:[],
    showCentent:false,
  phonenumber:'',
    showRight: false,
  },
  onRightBtnTap() {
    this.setData({
      showRight: true,
    });
  },
  tspage() {
    let userInfo = my.getStorageSync({ key: 'user' })

    if (!userInfo.data) {
      my.showToast({
        type: 'exception ',
        content: '你还没有登陆',
        duration: 1000,
      });
      return
    }
    my.navigateTo({
      url: '/pages/order/pagets/pagets'
    });
  },
  uppup() {
    this.setData({
      showCentent: true,
    });
  },
  onShow(){
    //my.hideTabBar()
    this.setData({
      phonenumber: '4008856357'
    })
  },
  onPopupClose() {
    this.setData({
      showCentent: false,
    });
  },
  // onPopupClose() {
  //   this.setData({
  //     showRight: false,
  //   });
  // },
  onLoad() {
    // app.editTabbar();
    
    app._init_(this);
  },
  // 跳转
  navigateTo(e) {
    //console.log("64555555555555555555555555555555555",e)
    app.navigateTo(e)
  },
  kfhelp(e){
    console.log("@@@@@@@@",e)
   my.navigateTo({
     url: '../kfhelp/kfhelp?index=' + e.currentTarget.dataset.index
   });
  },
 
  // 在线客服-电话
  server() {
    my.makePhoneCall({
      number: '4008856357'
    });
  }
});
